const mongoose = require('mongoose');

const MenuSchema = new mongoose.Schema({
	path: { type: String },
	name: { type: String },
	component: { type: String },
	parentId: { type: String },
	meta: { type: Object },
	menuNum: { type: Number },
	menuType: { type: String },// 菜单类型1目录 2菜单 3按钮
	permissionSign: { type: String }
});

const Menu = mongoose.model('Menu', MenuSchema);
module.exports = {
	Menu
};
